<template>
	<view class="container">
		<view class="messageInfo" v-for="item in 3" :key="item">
			<!-- 头像 -->
			<view class="avatar">
				<image :src="imageUrl + '/header.jpg'" mode="aspectFit"></image>
			</view>
			<!-- 消息 -->
			<view class="message">
				<p>龙庆峡玉渡山石京龙滑雪场</p>
				<span>我们这边是提供全套雪服租赁的~</span>
			</view>
			<!-- 时间数量 -->
			<view class="num">
				<p>10:50</p>
				<view class="redBox">
					1
				</view>
			</view>
		</view>
	</view>
</template>

<script>
</script>

<style lang="less">
	.container {
		width: 100VW;
		height: 100vh;
		background-color: #F2F6F9;
		.messageInfo {
			position: relative;
			display: flex;
			align-items: center;
			margin: 0 36rpx;
			margin-bottom: 18rpx;
			width: 678rpx;
			height: 87rpx;
			background: #FFFFFF;
			border-radius: 5rpx;
			
			.avatar {
				margin-left: 22rpx;
				width: 60rpx;
				height: 60rpx;
				background: #FFFFFF;
				box-shadow: -2rpx 2rpx 6rpx 0rpx rgba(102,102,102,0.72);
				border-radius: 50%;
				overflow: hidden;
				image {
					width: 60rpx;
					height: 60rpx;
				}
			}
			
			.message {
				margin-left: 38rpx;
				p {
					font-size: 22rpx;
					font-family: Adobe Heiti Std;
					font-weight: normal;
					color: #000000;
				}
				span {
					font-size: 22rpx;
					font-family: Adobe Heiti Std;
					font-weight: normal;
					color: #666666;
				}
			}
			
			.num {
				margin-left: 188rpx;
				p {
					position: absolute;
					top: 15rpx;
					font-size: 18rpx;
					font-family: Adobe Heiti Std;
					font-weight: normal;
					color: #666666;
				}
				.redBox {
					position: absolute;
					right: 9rpx;
					bottom: 15rpx;
					width: 22rpx;
					height: 22rpx;
					background: #FF1818;
					border-radius: 50%;
					
					font-size: 18rpx;
					font-family: Adobe Heiti Std;
					font-weight: normal;
					color: #FFFFFF;
					text-align: center;
				}
			}
		}
	}
</style>